package com.beerandjesus.sportofkings.handicapper.dao;

/**
 * Date: 6/4/13
 * Time: 6:54 PM
 */
public interface SireDAO {
    public static final String SIRE_TABLE_DEFINITION = " (name varchar(100), percentage decimal(3,2), rating decimal(3,2))";

    /**
     * Build (or rebuild) the sire database from scratch
     * @throws com.beerandjesus.sportofkings.handicapper.dao.DAOException
     */
    void buildDatabase() throws DAOException;

    /**
     * Get a count of rows in the sire database
     * @throws com.beerandjesus.sportofkings.handicapper.dao.DAOException
     * @return int The row count
     */
    int getRowCount() throws DAOException;
}
